home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_c / cuj0696.zip / DWYER.ZIP / PERMUTE.TST / PMTNDEFS.H < prev    next >
C/C++ Source or Header  |  1995-12-17  |  2KB  |  68 lines

  1. /* ============ */
  2. /* pmtndefs.h    */
  3. /* ============ */
  4. /* ==================================================================== */
  5. /*        TYPEDEFS, #DEFINES AND PROTOTYPES FOR PERMUTATION TEST     */
  6. /* ==================================================================== */
  7. # if defined(__PMTNDEFS_H__)
  8. #    /* Do Nothing */
  9. # else
  10. #    define    __PMTNDEFS_H__
  11.  
  12. # if !defined(__MISCDEFS_H__)
  13.  
  14. typedef    unsigned char        UCHAR;
  15. typedef    unsigned int        UINT;
  16. typedef    unsigned long        ULONG;
  17.  
  18. # if !defined(DEBUG)
  19. #    define    P( F )
  20. # else
  21. #    define    P( F )    F
  22. # endif
  23.  
  24. #define    SQR(x)    ((x) * (x))
  25.  
  26. #define    FALSE    0
  27. #define    TRUE    1
  28. # endif
  29.  
  30. #define    MIN_CELL_CT    5
  31. #define MAX_CELL_CT    10
  32. #define    MAX_ELEMS    7
  33. #define    MIN_ELEMS    3
  34.  
  35. /* ------------------- */
  36. /* FUNCTION PROTOTYPES */
  37. /* ------------------- */
  38. # undef F
  39. # if defined(__STDC__) || defined(__PROTO__)
  40. #    define  F( P )  P
  41. # else
  42. #    define  F( P )  ()
  43. # endif
  44.  
  45. /* INDENT OFF */
  46. typedef    struct    PrmutDataStru
  47.     {
  48.     int    NumCategories;        /* No. Possible Outcomes    */
  49.     UINT    NumObs;            /* No. Groups to Analyze    */
  50.     int    NumElements;        /* No. Elements Per Group    */
  51.     int    CellExpectation;    /* No. Events per Category    */
  52.     long    NumVariates;        /* No. Variates Generated    */
  53.     double    PrmutChiSq;        /* Chi-Square Statistic        */
  54.     int    CallStatusOK;        /* 0 = FALSE, 1 = TRUE        */
  55.     int    (*RandFun) F((void));    /* Addr. of Generating Function    */
  56.     }
  57.     PRMUT_DATA_STRU;
  58.  
  59. extern    int    AnalyzeNextPermutation    F((PRMUT_DATA_STRU *));
  60. extern    void    CalcPermuteChiSq    F((PRMUT_DATA_STRU *));
  61. extern    void    SetPermuteControls    F((PRMUT_DATA_STRU *));
  62.  
  63.  
  64. # undef F
  65. /* INDENT ON */
  66.  
  67. # endif                /* <<< __PMTNDEFS_H__ >>> */
  68.